package com.seadragon.apps.doctorcard.model;

public class DoctorCardConstants {
	public static final String SESSION_SCOPED_CONTACT= "contact";
	public static final String SESSION_SCOPED_CHAT= "chat";
	public static final String REGISTER= "register";
	public static final String MESSAGE= "message";
	public static final String LOGIN= "login";
	
	// Error codes
	
	public static final String RETURN_STATUS = "status";
	public static final String RETURN_ERRORS = "errors";
	public static final String RETURN_DATA = "data";
	public static final String RETURN_LOGINED_CONTACT= "loginedContact";
	
	public static final int RETURN_SUCCESS = 1;
	public static final int RETURN_FAIL = 2;
	
	public static final int ERROR_CODE_REGISTER_USERNAME_EMPTY = 100;
	public static final int ERROR_CODE_REGISTER_EMAIL_ALREADY_EXISTS = 101;
	public static final int ERROR_CODE_REGISTER_MOBILE_ALREADY_EXISTS = 102;
	public static final int ERROR_CODE_REGISTER_CARD_DOCTOR_ID_ALREADY_EXISTS = 103;
	public static final int ERROR_CODE_FORGOT_PASSWORD_EMAIL_EMPTY = 104;
	public static final int ERROR_CODE_RESET_PASSWORD_TOKEN_EXPIRED = 105;
	public static final int ERROR_CODE_RESET_PASSWORD_TOKEN_INVALID = 106;
	public static final int ERROR_CODE_UPDATE_CONTACT_FAIL = 107;
	public static final int ERROR_CODE_NOT_LOGINED = 108;
	public static final int ERROR_CODE_FAIL_TO_SAVE_REQUEST = 109;
	public static final int ERROR_CODE_CONTACT_NOT_EXIST = 110;
	public static final int ERROR_CODE_ALREADY_FRIEND = 111;
	public static final int ERROR_CODE_NOT_YOUR_FRIEND = 112;
	public static final int ERROR_CODE_NOT_YOUR_CHAT = 113;
	public static final int ERROR_CODE_CONTACT_NOT_IN_CHAT = 114;
	public static final int ERROR_CODE_CONTACT_NOT_IN_CONTACTS = 115;
	public static final int ERROR_CODE_CONTACT_ALREADY_EXIST = 116;
	public static final int ERROR_CODE_FAIL_TO_SAVE_CONTACT = 117;
	public static final int ERROR_CODE_REQUEST_ALREADY_EXIST = 118;
	public static final int ERROR_CODE_FAIL_TO_SAVE_FRIEND = 119;
	public static final int ERROR_CODE_NOT_REQUEST_RECIPIENT = 120;
	public static final int ERROR_CODE_FAIL_TO_SAVE_CHAT = 121;
	public static final int ERROR_CODE_FAIL_TO_SAVE_CHAT_CONTACT = 122;
	public static final int ERROR_CODE_ALREADY_IN_CHAT = 123;
	public static final int ERROR_CODE_FAIL_TO_SAVE_CHAT_MESSAGE = 123;
	public static final int ERROR_CODE_INVALID_MESSAGE = 123;
	public static final int ERROR_CODE_CAN_NOT_SEND_REQUEST_TO_YOURSELF = 124;
	public static final int ERROR_CODE_EMPTY_PASSWORD = 125;
	public static final int ERROR_CODE_WRONG_CURRENT_PASSWORD = 126;
	public static final int ERROR_CODE_FRIEND_DOES_NOT_EXIST = 127;
	
	public static final String INPUT_EMAIL = "email";
	public static final String INPUT_MESSAGE = "message";
	public static final String INPUT_HOST = "host";
	public static final String INPUT_PROTOCOL = "protocol";
	public static final String INPUT_PORT = "port";
	public static final String INPUT_LANG = "lang";
	public static final String INPUT_USERNAME = "username";
	public static final String INPUT_PASSWORD = "password";
	public static final String INPUT_TOKEN = "token";
	public static final String INPUT_KEYWORD = "keyword";
	public static final String INPUT_RESET_PASSWORD_URL = "resetPasswordUrl";
	public static final String INPUT_PHOTO_URL = "photoUrl";
	public static final String INPUT_AUDIO_URL = "audioUrl";
	public static final String INPUT_VIDEO_URL = "videoUrl";
	public static final String INPUT_TEXT = "text";
	public static final String INPUT_PAGE_SIZE= "pageSize";
	public static final String INPUT_OFFSET = "offset";
	public static final String INPUT_CHAT_ID = "chatId";
	public static final String INPUT_DATE_LATEST_DOWNLOADED = "dateLatestDownloaded";
	
	public static final String OUTPUT_MEDIA_TYPE = "mediaType";
	public static final String OUTPUT_MEDIA_CONTENT = "mediaContent";
	public static final String OUTPUT_MEDIA_ICON_URL = "mediaIconUrl";
	
	public static final String LANG_EN_US = "en_US";
	public static final String LANG_ZH_CN = "zh_CN";

	public static final int PERIOD_TO_EXPIRE_RESET_PASSWORD_LINK = 15;
	
	public static final String FORGOT_PASSWORD_EMAIL_CN = "<html>"
			+ "<head>"
			+ "<title>重新设置你的密码</title>"
			+ "</head>"
			+ "<body>"
			+ "<p>请点击下面的链接来重新设置你的密码.</p>"
			+ "<p><a href=\"{{resetPasswordUrl}}{{token}}"
			+ "\">"
			+ "{{resetPasswordUrl}}{{token}}"
			+ "</a></p>"
			+ "</body>"
			+ "</html>";
	
	public static final String FORGOT_PASSWORD_EMAIL_EN = "<html>"
			+ "<head>"
			+ "<title>Reset your password on dms.com</title>"
			+ "</head>"
			+ "<body>"
			+ "<p>Please clilk following link to reset your password.</p>"
			+ "<p><a href=\"{{resetPasswordUrl}}{{token}}"
			+ "\">"
			+ "{{resetPasswordUrl}}{{token}}"
			+ "</a></p>"
			+ "</body>"
			+ "</html>";
	
	public static final String DOCTOR_CARD_EMAIL_ADDRESS = "doctorcard598@gmail.com";
	public static final String DOCTOR_CARD_EMAIL_PASSWORD = "w*2nG39kp@W";
	public static final String DOCTOR_CARD_EMAIL_NAME = "yadong.dnsdynamic.com";
	
	public static final String GOOGLE_SMTP_SERVER = "smtp.gmail.com";
	public static final int GOOGLE_SMTP_SERVER_PORT = 465;
	public static final String CONTACT_ID = "contactId";
	
	
}
